package com.clock.shop.mapper;

import com.clock.shop.domain.ShopAppointed;
import com.clock.shop.domain.vo.AppointedVo;

import java.util.List;


/**
 * 预约Mapper接口
 * 
 * @author ruoyi
 * @date 2024-10-11
 */
public interface ShopAppointedMapper 
{
    //查询预约单总数
    public Long selectAppointedNum(Long shopId);
    /**
     * 查询预约
     * 
     * @param appointedId 预约主键
     * @return 预约
     */
    public AppointedVo selectShopAppointedByAppointedId(Long appointedId);

    /**
     * 查询预约列表
     * 
     * @param appointedVo 预约
     * @return 预约集合
     */
    public List<AppointedVo> selectShopAppointedList(AppointedVo appointedVo);

    /**
     * 新增预约
     *
     * @param appointedVo 预约
     * @return 结果
     */
    public int insertShopAppointed(AppointedVo appointedVo);

    /**
     * 修改预约
     *
     * @param appointedVo 预约
     * @return 结果
     */
    public int updateShopAppointed(AppointedVo appointedVo);

    /**
     * 删除预约
     * 
     * @param appointedId 预约主键
     * @return 结果
     */
    public int deleteShopAppointedByAppointedId(Long appointedId);

    /**
     * 批量删除预约
     * 
     * @param appointedIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteShopAppointedByAppointedIds(Long[] appointedIds);
}
